package com.jiangcheng.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author admin
 * @since 2021-07-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel("评论")
@AllArgsConstructor
public class Comment implements Serializable {

    private static final long serialVersionUID=1L;

      @TableId(value = "id", type = IdType.AUTO)
      @ApiModelProperty("评论ID")
    private Integer id;

    @ApiModelProperty("评论内容")
    private String content;

    @ApiModelProperty("评论人ID")
    private Integer uId;

    @ApiModelProperty("文章ID")
    private Integer artId;

    @ApiModelProperty("评论类型ID")
    private Integer tId;

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",  locale = "zh" ,timezone="GMT+8")
    private LocalDateTime createdTime;


}
